﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BawangMemo.BackendModels
{
    [Serializable]
    public class CourseInfo
    {
        /// <summary>
        /// The course name.
        /// </summary>
        public string CourseName { get; set;}

        /// <summary>
        /// The bucket size (for algorithm) of this course.
        /// </summary>
        public int BucketSize { get; set; }

        /// <summary>
        /// The index of the current word  that being recited.
        /// </summary>
        public int CurrentWordIndex { get; set; }

        /// <summary>
        /// The index of the current bucket.
        /// </summary>
        public int CurrentBucketId { get; set; }

        public CourseInfo(string courseName, int bucketSize, int totalWordCount)
        {
            CourseName = courseName;
            BucketSize = bucketSize;
            CurrentWordIndex = 0;
            CurrentBucketId = 0;
            TotalWordCount = totalWordCount;
        }

        public int TotalWordCount { get; set; }
    }
}
